package com.leyou.seckill.controller;

import com.leyou.common.utils.DateUtil;
import com.leyou.seckill.service.SeckillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.List;

@RestController
public class SeckillController {
    @Autowired
    private SeckillService seckillService;

    @GetMapping("/goods/menus")
    public ResponseEntity<List<Date>> dateMenus(){
        List<Date> dateMenus = DateUtil.getDateMenus();
        return ResponseEntity.ok(dateMenus);
    }
}
